<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>整改处罚</title>
<script type="text/javascript">
	({
				skin : 'whyGreen',
				minDate : '#F{$dp.$D(\'prepareDate\')}',
				dateFmt : 'yyyy-MM-dd HH:mm:ss'
			});
		});
	});

	$(document).ready(function() {
		$("#prepareDate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '1900-10-01',
				dateFmt : 'yyyy-MM-dd HH:mm:ss'
			});
		});
		$("#dealDate").addClass("Wate").bind("click", function() {
			WdatePicker
</script>
</head>
<body>
	<form action="${ctx }/quality/check_result!saveCheckResut.action"
		id="inputForm" method="post" class="yform"
		enctype="multipart/form-data">
		<div id="heading" class="">
			<h3>整改处罚管理</h3>
		</div>
		<input type="hidden" name="id" id="id" value="${id}"> <input
			type="hidden" name="projectId" id="projectId"
			value="${empty param.projectId ? projectId : param.projectId }">
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td>工程名称</td>
					<td><pt:labels type="proj"
							argument1="${empty param.projectId ? projectId : param.projectId }"
							single="true"></pt:labels></td>
					<td>问题类型</td>
					<td><pt:code category="3011" name="type" default="${type}"></pt:code>
					</td>
				</tr>
				<tr class="type-text">
					<td>概要描述</td>
					<td><textarea rows="3" name="content">${content}</textarea></td>
				</tr>
				<tr class="type-text">
					<td>附件</td>
					<td><input type="file" name="attachmention.upfile" size="40">
					</td>
				</tr>
				<c:if test="${not empty attachment.id}">
					<tr id="attachment">
						<td>已有附件</td>
						<td colspan="3"><a title="下载"
							href="${ctx}/servlet/annex?id=${attachment.id}">${attachment.upfileFileName}</a>
							<a href="javascript:deleteAttachment('${attachment.id}')"
							class="delete">删除</a></td>
					</tr>
				</c:if>
				<tr class="type-text">
					<td>发现时间</td>
					<td><input type="text" id="prepareDate" name="prepareDate"
						value="${prepareDate}" readonly="readonly">
					</td>
					<td>处理时间</td>
					<td><input type="text" id="dealDate" name="dealDate"
						value="${dealDate}" readonly="readonly">
					</td>
				</tr>
				<tr class="type-text">
					<td>处理措施</td>
					<td><input type="text" id="dealContent" name="dealContent"
						value="${dealContent} ">
					</td>
				</tr>
				<tr class="type-text">
					<td>备注</td>
					<td><textarea rows="3" name="remark">${remark}</textarea></td>
				</tr>
			</table>
		</div>
		<div class="type-button">

			<input class="button" type="submit" class="submit" value="提交" />&nbsp;

			<input class="button" type="reset" value="返回" class="reset"
				onclick="history.back()" />
		</div>
	</form>
</body>